TABLE OF CONTENTS

Restriction

The Restrictions existed in the request of the availabilityPeer /ari/daily/push API of GO 4 PUSH distributors. 

The example is as follows:

      "availStatuses": {
        "close": [
          false,
          false,
          false,
          false
        ],
        "minStayArrival": [
          0,
          2,
          0,
          0
        ],
        "maxStayArrival": [
          0,
          2,
          0,
          0
        ],
        "minStayThrough": [
          0,
          2,
          0,
          0
        ],
        "maxStayThrough": [
          0,
          2,
          0,
          0
        ],
        "minAdvanceDay": [
          0,
          2,
          0,
          0
        ],
        "maxAdvanceDay": [
          365,
          365,
          365,
          365
        ],
        "cta": [
          false,
          false,
          false,
          true
        ],
        "ctd": [
          false,
          false,
          false,
          true
        ],
        "fplos": [
          "1111111",
          "1001111",
          "1000001",
          "0000000"
        ]
      },


Below is the definition for each field of the restriction:

AvailStatus ( take the availStatus of March 10 for example)


Close = true

The availability for this product is closed (can not be sold).

minStayArrival = 2

I need to stay at least 2 days if I check in on March 10.

maxStayArrival = 2

I can stay 2 days at most if I check in on March 10.

minStayThrough =3

When the stay range passed through March 10th, I need to stay at least 3 days.

If you check in on March 8th, check out before March 11th is not allowed.

If you check in on March 9th, check out before March 12th is not allowed.

If you check in on March 10th, check out before March 13th is not allowed.

maxStayThrough =3

When the stay range passed through March 10th, I can only stay for 3 days at most.

If you check in on March 8th, check out after March 11th is not allowed.

If you check in on March 9th, check out after March 12th is not allowed.

If you check in on March 10th, check out after March 13th is not allowed.

minAdvanceDay = 2

If I want to check in on March 10th, I need to make a reservation before March 8th.

maxAdvanceDay =2

If I want to check in on March 10th, I can only make a reservation for this product from March 8th.

Cta = true

Close to arrival, can not check in on March 10th.

Ctd = true

Close to departure, can not check out on March 10th.

Fplos = “0010110”

Full pattern length of stay. If I want to check in on March 10th, only stay 3 days, 5 days and 6 days are available.



FPLOS

FPLOS:  Full Pattern Length of Stay. All possible length of stay options are provided in a string, with open or closed values. (IE: 1 = Open, 0 = Closed) 


Example: 1001110 = 7 day total possible LOS -- Breakdown: 1 night LOS is open, 2 & 3 night LOS is closed, 4, 5, & 6 night LOS is open, 7 night LOS is closed.